Motion.PowerAxis 方法

启用或停用轴的运作。

命名空间IntervalZero.KINGSTAR.Local.Api

组合: IntervalZero.KINGSTAR.Local.Api (于 IntervalZero.KINGSTAR.Local.dll) 版本:4.4.0.0

语法

C#VB
public KsCommandStatus PowerAxis(
       int Index,
       bool Enable,
       bool EnablePositiveDirection,
       bool EnableNegativeDirection
)
Public Function PowerAxis(
       Index As Integer,
       Enable As Boolean,
       EnablePositiveDirection As Boolean,
       EnableNegativeDirection As Boolean
) As KsCommandStatus

参数

Index [in]

型别:int

轴索引。索引以 0 为起始;别名将影响此参数。

 

Enable [in]

型别:bool

true:启用轴;false:停用轴。

 

EnablePositiveDirection [in]

型别:bool

true:使轴朝正方向移动。

 

EnableNegativeDirection [in]

型别:bool

true:使轴朝负方向移动。

回传值

型别:KsCommandStatus

回传 KsCommandStatus 类别。

备注

此函式可用来启动或停止伺服马达并防止轴超程。

范例

C#
N/A

参见

Motion 类别

IntervalZero.KINGSTAR.Local.Api 命名空间